# jia =['a','b','c']
# yi= ['x','y','z']
#
# print('对手是')
# for j in yi:
#     if( jia=='a'and yi=='x') or(jia=='c'and yi=='y')or(jia=='c'and yi=='z'):
#         continue
#     else:
#         print(f"{j}")
# 1
# 1
# 1

# jia =['a','b','c']
# yi= ['x','y','z']
# top =0
#
# #甲队不动以乙队进行打乱排序进行对打
# top = yi[0]
# yi[0] = yi[1]
# yi[1] = yi[2]
# yi[2]=top
#
#     for j in yi:
#         if( i=='a'and j=='x') or(i=='c'and j=='x')or(i=='c'and j=='z'):
#             continue
#         else:
#             print(f'{j}')
#
#     print('a,b,c的对手为')
#

# jia =['a','b','c']
# yi= ['x','y','z']
# top =0
#
# #甲队不动以乙队进行打乱排序进行对打
# top = yi[1]
# yi[1] = yi[2]
# yi[2] = yi[3]
# yi[3]=top

 # for i in jia:
 #    for j in yi:
 #        if( i=='a'and j=='x') or(i=='c'and j=='x')or(i=='c'and j=='z'):
 #            continue
 #        else:
 #            print(f'a，b,c的对手分别是{yi}')
 #
 #
 #

#数字列表
yi= ['x','y','z']
tetal = 0
#选取第一个数并删去重复的和不能用的
for i in yi:
    if i == 'x':
        continue
    #选取第二个数并删去重复的
    for j in yi:
        if i == j:
            continue
        #选取第三个数并删去重复的和不能用的
        for k in yi:
            if k ==i or k == j or (k == 'x') or (k == 'z'):
                continue
            print(i,j,k)
